//
//  XYDiscoverController.swift
//  WeiboSourceCode
//
//  Created by 周星宇 on 15/12/26.
//  Copyright © 2015年 cn.weibo. All rights reserved.
//

import UIKit

class XYDiscoverController: XYBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if login == false {
            
            let visitorViewModel = XYVisitorViewModel()
            visitorViewModel.icon = "visitordiscover_image_message"
            visitorViewModel.text = "登陆后,别人评论你的微博，给你发消息，都会在这里收到通知"
            (view as! XYVisitorView).visitorViewModel = visitorViewModel
            return
        }
        
        setNav()
        
    }
    
    private func setNav() {
        
        let titleView = XYDiscoverTextFiled.discoverTextField()
        titleView.bounds.size = CGSize(width: kSCREENWITH, height: 35)
        
        navigationItem.titleView = titleView
    }
  

}
